﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VSWClient.Utility
{
	public static class EventProcessStatus
	{
		public static string bindRecipe = "";
	}

	public static class Identity
	{
		public const string definedCommand = "Defined";
		public const string undefinedCommand = "Undefined";

		#region Login
		public const string login = "1";
		#endregion

		#region User		
		#endregion
		#region shift		
		#endregion

		#region Task general
		public const string initPageTask = "200";
		public const string refreshGeneralTask = "201";
		public const string select_GeneralTaskByIndex = "202";
		#endregion
		#region Task task
		public const string selectTaskByParameters = "210";
		public const string refreshTaskTask = "211"; 
		#endregion
		#region Task recipe
		public const string selectRecipeByParameters = "220";
		#endregion
		#region Task batchsamplerule
		#endregion
		#region Task stripsamplerule
		#endregion
		#region Task productionStandard
		public const string selectProductionStandard = "230";
		public const string insert_ProductionStandard = "231";
		public const string edit_ProductionStandard = "232";
		#endregion

		#region DownTime
		public const string innitPageDownTime = "85";
		public const string selectV7_DOWNTIMEToDay = "80";
		public const string selectV7_DOWNTIME = "81";
		public const string updatedowntime = "82";
		public const string selectdowntimeBydowntime = "83";
		public const string downtime_selectV7_Shift = "84";
		public const string adddowntime = "86";
		#endregion

		#region Query Batch 
		public const string queryBatchByBatchNo = "240"; 
		public const string queryBatchStripByBatchNo = "241"; 
		public const string queryBatchPipeByBatchNo = "242";
		#endregion
		#region Query Strip
		public const string queryStripStripByStripNo = "250";
		public const string queryStripPipeByStripNo = "251";		
		public const string queryPIPE_INFOByStripNo = "94";
		#endregion
		#region Query Pipe 
		public const string queryPipePipeByPipeNo = "260";
		public const string queryPipePipePassportAndTaskByPipeNo = "261"; 
		public const string queryPipeExportPipeProcessData = "262";

		public const string query_PIPE_PARAMETER = "96";
		#endregion
		#region Query Pipe 
		public const string queryBundleByBundleNo = "270";
		public const string queryBundlePipeByBundleNo = "271";
		
		#endregion
		#region Query RecipeLog
		public const string queryRecipeLog = "97";
		#endregion
		

		public const string insertmanager = "0";
		public const string loginselectshift = "2";
		public const string selectAllTable = "10";

		
		public const string startCurrentTask = "28";
		public const string endCurrentTask = "29";
		public const string selectTaskByTaskNo = "30"; 
		public const string autoCreateNewTask = "31";

		public const string selectAllV7_ORDER = "20";
		public const string deleteUnloadingTask = "21";
		public const string deleteUnfinishedOrder_coilinfo = "22";
		public const string insert_TASK = "23";
		public const string updateTaskByTaskNo = "24";
		
		

		public const string select_STRIP_INFOByTaskNo = "40";
		public const string insert_STRIP_INFO = "41";
		public const string updateStripByStripNo = "42";
		public const string deleteStripInfoByStrip_code = "43";



		public const string querySTRIP_INFOByTaskNo = "91";
		public const string queryTaskByTaskNo = "92";
		public const string queryV7_Bundle_PipeByBundle_Id = "94";
		public const string queryAllV7_BUNDLE_INByBundle_Id = "95";

		
		public const string queryPipe_ParameterByPipe_id = "98";
		public const string queryAllPipe_Passport = "99";
		public const string queryPipe_PassportByPipeId = "100";
		public const string initPage_Query = "150";

		public const string selectPipeFlow_PieParameter = "101";
		public const string selectCradleTable = "102";
		public const string selectBC1_PIPE = "103";
		public const string selectBC2_PIPE = "104";

		//public const string selectUSER_INDEX = "127";
		//public const string initUserManager = "126";
		//public const string selectAllV7_USER = "120";		
		//public const string updateV7_USER = "121";
		//public const string deleteV7_USER = "122";
		//public const string resetV7_USERPASSWORD = "123";
		//public const string insertV7_USER = "124";
		//public const string updateV7_USER_password = "125";

		
		
		public const string selectUSER_BYINDEX = "120";
		public const string update_USER = "121";
		public const string delete_USER = "122";
		public const string reset_USERPASSWORD = "123";
		public const string insert_USER = "124";
		public const string update_USERPASSWORD = "125";
		public const string select_USERINFO = "126";

		public const string refrushShiftTable = "130";
		public const string update_SHIFT = "131";
		public const string update_TEAM = "132";
		//public const string deleteV7_SHIFT = "132";
		//public const string insertV7_SHIFT = "133";
		//public const string updateV7_SHIFTIntervalTime = "142";

		public const string selectAllV7_L2_EVENT = "134";
		public const string insertV7_L2_EVENT = "135";
		public const string selectNoFinishedL3_Event = "136";
		public const string selectV7_L3_Coil = "137";
		public const string insertV7_L3_COIL_INFO = "138";
		public const string updateV7_L3_Event = "139";

		public const string insertV7_L2_Coil = "140";
		public const string insertV7_L2_Coil_delete = "141";

		public const string selectAllV7_BUNDLE_IN = "70";
		public const string selectV7_Bundle_PipeByBundle_Id = "71";
		public const string deleteUnStartV7_BUNDLE_IN = "72";
		public const string selectAllStartingPipe = "73";
		public const string selectV7_L3_Bundle_PipeByBundleId = "74";
		public const string insertV7_L3_Bundle = "75";
		public const string updateBundleInByBundleId = "76";
		public const string updateBundlePipeByBundleId = "77";

		

		public const string selectAllV7_RECIPE = "30";
		public const string selectV7_RecipeByRecipeid = "31";
		public const string edit_Recipe = "32";
		public const string insert_Recipe = "33";
		public const string deleteRecipeByRecipe_id = "34";
		public const string select_RecipeByIndex = "35";

		public const string insertL2RecipeLog = "36";
		public const string queryL2RecipeLog = "37";

		public const string insert_BatchSampleRule = "140";
		public const string edit_BatchSampleRule = "141";
		public const string delete_BatchSampleRule = "142";
		public const string select_BatchSampleRuleByIndex = "143"; 

		public const string insert_StripSampleRule = "160";
		public const string edit_StripSampleRule = "161";
		public const string delete_StripSampleRule = "162";
		public const string select_StripSampleRuleByIndex = "163";

		public const string bindRecipe = "50";
		public const string unBindRecipe = "51";
		public const string addBindOrderToQueue = "52";
		public const string removeBindOrderFromQueue = "53";

		public const string queue_Order = "60";
		public const string quit = "00";

		public const string CONNECTED = "1000";
		public const string UNKNOW = "1001";
		public const string ERROR = "1002";
	}
}
